{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "90146c08",
   "metadata": {},
   "outputs": [],
   "source": [
    "#高斯滤波\n",
    "import cv2 as cv\n",
    "import numpy as np\n",
    "from matplotlib import pyplot as plt\n",
    "\n",
    "img = cv.imread('../data/opencv-logo-white.png') \n",
    "blur = cv.GaussianBlur(img,(5,5),0)\n",
    "#高斯有权重\n",
    "res = np.hstack((img,blur))\n",
    "cv.imshow(\"res\",res)\n",
    "cv.waitKey(0)\n",
    "cv.destroyAllWindows()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c4b41ce1",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
